Today you will be making a code breaking game! The program will create a pattern and the player will try to find

  • Click Run. Guess the code by choosing 4 colors from the colors list. Your color must be spelled correctly!

If your color is correct and in the correct place in the row, the dot shown at the right will be black.

If your color is correct, but is in the wrong place, the dot shown will be white.

If the color choice is not in the secret code, there will be no corresponding dot.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)